# base image
FROM debian

# MAINTAINER 维护者
MAINTAINER fgla@qq.com

# # 重新生成yum缓存
# RUN yum clean all
# RUN yum makecache

# # 解决 yum安装了旧版本的GPG keys造成的问题
# RUN rpm \
# --import /etc/pki/rpm-gpg/RPM*

# # 安装wget
# RUN yum install wget -y

# # 变更阿里源
# RUN mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
# RUN wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo \
# --header="Accept-Encoding:gzip,deflate,sdch"
# RUN yum clean all
# RUN yum makecache
# # 更新docker容器内包
# RUN yum update -y

# # 具体内容

# # put nginx-1.16.0.tar.gz into /usr/local/src and unpack nginx
# ADD nginx-1.16.0.tar.gz /usr/local/src
# # running required command
# RUN yum install -y gcc gcc-c++ glibc make autoconf openssl openssl-devel 
# RUN yum install -y libxslt-devel -y gd gd-devel GeoIP GeoIP-devel pcre pcre-devel
# RUN useradd -M -s /sbin/nologin nginx
# # change dir to /usr/local/src/nginx-1.16.0
# WORKDIR /usr/local/src/nginx-1.16.0
# # execute command to compile nginx
# RUN ./configure \
# --user=nginx \
# --group=nginx \
# --prefix=/usr/local/nginx \
# --with-file-aio \
# --with-http_ssl_module \
# --with-http_realip_module \
# --with-http_addition_module \
# --with-http_xslt_module \
# --with-http_image_filter_module \
# --with-http_geoip_module \
# --with-http_sub_module \
# --with-http_dav_module \
# --with-http_flv_module \
# --with-http_mp4_module \
# --with-http_gunzip_module \
# --with-http_gzip_static_module \
# --with-http_auth_request_module \
# --with-http_random_index_module \
# --with-http_secure_link_module \
# --with-http_degradation_module \
# --with-http_stub_status_module && make && make install
# EXPOSE 80












